import { createStore } from 'vuex'
const user_info=localStorage.getItem("user_info") 
const uset_data=user_info?JSON.parse(user_info):{}
export default createStore({
  state: {
    total:0,
    user_info:uset_data || {},
    IsRestPassword:false,
    isCollapsed:false
  },
  getters: {
  },
  mutations: {
    changeTotal(state,value){
      state.total=value
    },
    changeUserinfo(state,value){
      state.user_info=value
    },
    changeCollapsed(state,value){
      state.isCollapsed=value
    },
    changRestPassword(state,value){
      state.IsRestPassword=value
    }
  },
  actions: {
  },
  modules: {
  }
})
